package com.gitee.ywj1352.dubbo.resilience4j.strategy;

import io.vavr.control.Try;
import org.apache.dubbo.common.extension.SPI;
import org.apache.dubbo.rpc.Invocation;
import org.apache.dubbo.rpc.Invoker;
import org.apache.dubbo.rpc.Result;

@SPI
public interface TryStrategy {
    Try<Result> getResult(Invoker<?> invoker, Invocation invocation);
}
